projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a755f1
)
tools: compiler.h: add missing time.h
author
Jeroen Hofstee
<
[email protected]
>
Wed, 25 Jun 2014 21:02:21 +0000
(23:02 +0200)
committer
Tom Rini
<
[email protected]
>
Tue, 22 Jul 2014 11:44:25 +0000
(07:44 -0400)
genimg_print_time uses time_t, but time.h is never included.
Linux gets away with this since types.h includes time.h.
Explicitly include the header file so building on e.g. FreeBSD
also works.
cc: Tom Rini <
[email protected]
>
Signed-off-by: Jeroen Hofstee <
[email protected]
>
include/compiler.h
patch
|
blob
|
history
diff --git
a/include/compiler.h
b/include/compiler.h
index 0734ed494274558a0656925220d7e4861da7231e..9afc11be1942d6b9e2c4ba19ed059fd288447685 100644
(file)
--- a/
include/compiler.h
+++ b/
include/compiler.h
@@
-48,6
+48,7
@@
# include <machine/endian.h>
typedef unsigned long ulong;
#endif
+#include <time.h>
typedef uint8_t __u8;
typedef uint16_t __u16;